package com.neu.his.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.neu.his.entity.Menu;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MenuMapper extends BaseMapper<Menu> {

    //获取拥有对应id的menu的role，id=-1时，获取所有
    public List<Menu> getRoleMenu(Long id);
}
